cmake_minimum_required(VERSION 3.6)

project(wheels-cpp)

add_compile_options(-std=c++17)
add_compile_options(-g -Wall -O1 -Os)
add_compile_options(-Wno-unused-local-typedefs)

execute_process(COMMAND bash ${PROJECT_SOURCE_DIR}/get_build_version.sh OUTPUT_VARIABLE CURRETN_BUILD_VER)
message(STATUS "current build version: " ${CURRETN_BUILD_VER})

add_compile_definitions(LOG_LIB_VERSION=\"${CURRETN_BUILD_VER}\")
add_compile_definitions(LOG_LIB_NAME=\"lib${PROJECT_NAME}\")


include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/src/inc)


add_subdirectory(src)
add_subdirectory(test)

INSTALL (DIRECTORY  ${PROJECT_SOURCE_DIR}/include/ DESTINATION /usr/include/wheels)
